<?
include("../common.inc.php");

class BUY {
	/**
	 * @return MailClass
	 */
	static public function getMail() {
		if(!class_exists('MailClass')) {
			include ('mail.class.php');
		}
		return new MailClass();
	}
	/**
	 * @return SendEmail
	 */
	static public function getSendEmail() {
		if(!class_exists('SendEmail')) {
//			include_once(INC_PATH."/sendmail.class.php");
			include_once("sendmail.class.php");
		}
		return new SendEmail();
	}
	
	/**
	 * @return AccountChargeClass
	 */
	static public function getAccountCharge() {
		if(!class_exists('AccountChargeClass')) {
			include ('accountcharge.class.php');
		}
		return new AccountChargeClass();
	}
	
	/**
	 * @return FileCache
	 */
	static public function getFileCache() {
		if(!class_exists('FileCache')) {
			include ('cache.class.php');
		}
		return new FileCache();
	}
	
	/**
	 * @return memberclass
	 */
	static public function getMember() {
		if(!class_exists('memberclass')) {
			include ('member.class.php');
		}
		return new memberclass();
	}
	
	/**
	 * @return MobileClass
	 */
	static public function getMobile() {
		if(!class_exists('MobileClass')) {
			include ('mobile.class.php');
		}
		return new MobileClass();
	}

	/**
	 * @return OrderClass
	 */
	static public function getOrder() {
		if(!class_exists('OrderClass')) {
			include ('order.class.php');
		}
		return new OrderClass();
	}
	
	/**
	 * @return MchangesClass
	 */
	static public function getMchanges() {
		if(!class_exists('MchangesClass')) {
			include ('moneychanges.class.php');
		}
		return new MchangesClass();
	}
	
	/**
	 * @return Referralsclass
	 */
	static public function getReferrals() {
		if(!class_exists('Referralsclass')) {
			include ('referrals.class.php');
		}
		return new Referralsclass();
	}
}
?>